package com.ruoyi.subsidy.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

// 树形节点VO（需新增）
@Data
public class AreaTreeVo {
    private Long id;
    private String label;
    private String value;
    private String type;
    private List<AreaTreeVo> children = new ArrayList<>(); // 关键修改：初始化列表

    // 全参构造器
    public AreaTreeVo(Long id, String label, String type) {
        this.id = id;
        this.label = label;
        this.value = String.valueOf(id);
        this.type = type;
    }
}
